"use strict";

angular.module('app.jurisdiction', ['ui.router'])
.config(function ($stateProvider) {

    $stateProvider
         .state('app.jurisdiction', {
             abstract: true,
             data: {
                 title: '权限管理'
             }
         })

       .state('app.jurisdiction.addAction', {
            url: '/addAction',
            views: {
                "content@app": {
                    templateUrl: 'jurisdiction/views/addAction.html',
                    controller: 'AddActionCtrl'
                   }
            },
            data:{
                title: '动作管理',
                level: 'level_8'
               
            }
           }) 
        .state('app.jurisdiction.editAction', {
            url: '/editAction/:roleid',
            views: {
                "content@app": {
                    templateUrl: 'jurisdiction/views/editAction.html',
                    controller: 'EditActionCtrl'
                   }
            },
            data:{
                title: '权限编辑2',
                level: 'level_8'
               
            }
        })
        .state('app.jurisdiction.allRole', {
            url: '/allRole',
            data: {
                title: '角色'
            },
            views: {
                "content@app": {
                    templateUrl: 'jurisdiction/views/allRole.html',
                    controller: 'AllRoleCtrl'
                }
            }
        })
        
       
});


